package com.whimscrew.user.controller;

import com.whimscrew.user.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/v1/user")
public class UserController {


    @Autowired
    DeptService deptService;

    //所属部门
    @GetMapping("/dept")
    public String getDept(){
        return deptService.dept();
    }

}
